#!/bin/bash

#receive a direct smoke-encoded video+audio encoded stream from a remote host. see gst-send.sh

HOST=$1
VIDEOPORT=$2
AUDIOPORT=$3

gst-launch-0.10 udpsrc port=$VIDEOPORT ! queue ! oggdemux name=demux ! queue ! smokedec ! ffmpegcolorspace ! videoscale ! ximagesink demux. ! queue ! autovideosink tcpclientsrc host=$HOST port=$AUDIOPORT ! queue ! speexdec ! queue ! alsasink sync=false
